﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace drawDong
{
    public partial class Form14 : Form
    {
        public string test = string.Empty;
        private string rootPath;
        public Form14(String rootPath)
        {
            this.rootPath = rootPath;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.radioButton1.Checked)
            {
                test = "4";
            }
            else if (this.radioButton2.Checked)
            {
                test = "6";
            }
            else if (this.radioButton3.Checked)
            {
                test = "8";
            }
            this.DialogResult = DialogResult.OK;
        }

        private void Form14_Load(object sender, EventArgs e)
        {
            string mode = INIHelper.Read("AAA", this.rootPath, GlobalVariables.six46Path);
            this.radioButton1.Checked = "4" == mode;
            this.radioButton2.Checked = "6" == mode;
            this.radioButton3.Checked = "8" == mode;
        }
    }
}
